package com.mi.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Table(name ="carouselimages")
@Entity
public class LunboEntity implements Serializable {
    //主键ID
    @Id
    private int imageId;
    //标题
    @Column
    private String imageTitle;
    //路径
    private String imageSrc;
    //描述
    private String imagedesc;

    public LunboEntity() {
    }

    public LunboEntity(int imageId, String imageTitle, String imageSrc, String imagedesc) {
        this.imageId = imageId;
        this.imageTitle = imageTitle;
        this.imageSrc = imageSrc;
        this.imagedesc = imagedesc;
    }

    public int getImageId() {
        return imageId;
    }

    public void setImageId(int imageId) {
        this.imageId = imageId;
    }

    public String getImageTitle() {
        return imageTitle;
    }

    public void setImageTitle(String imageTitle) {
        this.imageTitle = imageTitle;
    }

    public String getImageSrc() {
        return imageSrc;
    }

    public void setImageSrc(String imageSrc) {
        this.imageSrc = imageSrc;
    }

    public String getImagedesc() {
        return imagedesc;
    }

    public void setImagedesc(String imagedesc) {
        this.imagedesc = imagedesc;
    }

    @Override
    public String toString() {
        return "LunboEntity{" +
                "imageId=" + imageId +
                ", imageTitle='" + imageTitle + '\'' +
                ", imageSrc='" + imageSrc + '\'' +
                ", imagedesc='" + imagedesc + '\'' +
                '}';
    }
}
